import requests

# 伪造请求头

header = {
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",
}

res = requests.get("http://127.0.0.1:8000/middleware", headers=header)


print(res.text)